<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>代理商配置</title>
		<meta http-equiv="X-UA-Compatible" content='IE=edge' />
		<%@ include file="/inc/info.inc" %>
		<script type="text/javascript" src="js/agentBaseConfig.js"></script>
	</head>

	<body>
		<div id="agentList" class="hd_page">
			<div><%@ include file="../manage/heading.jsp"%></div>
			<div><%@ include file="../manage/hd_menu.jsp"%></div>
			<div class="content">
				<div id='grid'></div>
				<nav id='navbar' class="navbar navbar-default" role="navigation">
					<div class="top_item_search">
						<div class="row">
							<div class="col-xs-8">
								<div style="line-height: 36px; display:inline;">
								当前系统默认基数点（新代理商注册成功后默认使用的基数点）：
								</div>
								&nbsp;&nbsp;
								<input id="agentBaseDef" type="text" style="width: 180px; display:inline;" class="form-control" placeholder="设置基数（x点/年）"/>
							</div>
							<div class="col-xs-4">
								<button class="btn btn-success" onclick="edit_def()">修改</button>
							</div>
						</div>
						<div class="row" style="height: 5px;"></div>
						<div class="row">
							<div class="col-xs-8">
								<input id="agentName" type="text" style="width: 180px; display:inline;" class="form-control" placeholder="代理商名称"/>
								&nbsp;&nbsp;
								<input id="agentBase" type="text" style="width: 180px; display:inline;" class="form-control" placeholder="设置基数（x点/年）"/>
								&nbsp;&nbsp;
								<input id="note" type="text" style="width: 180px; display:inline;" class="form-control" placeholder="输入备注"/>
							</div>
							<div class="col-xs-4">
								<button class="btn btn-success" onclick="add()">添加</button>
							</div>
						</div>
						<div style="clear: both;"></div>
					</div>
					<div id='alertdiv'></div>
				</nav>
			</div>
		</div>
		<div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<div class="modal-dialog" style="width: 360px;">
				<div class="modal-content">
					<div class="modal-header">
						<h4 class="modal-title" id="myModalLabel">
							修改代理商基数
						</h4>
					</div>
					<div align="center" class="modal-body" style="overflow: auto;">
						<form class="form-horizontal">
							<div class="form-group">
								<div style="text-align: center;">正在修改代理商“<span id="edit_agentName"></span>”的基数</div>
							</div>
							<div class="form-group">
								<label for="inputEmail3" class="col-sm-3 control-label">
									基数
								</label>
								<div class="col-sm-9">
									<input id="edit_agentBase" type="text" class="form-control" placeholder="设置基数（x点/年）"/>
								</div>
							</div>
							<div class="form-group">
								<label for="inputEmail3" class="col-sm-3 control-label">
									备注
								</label>
								<div class="col-sm-9">
									<input id="edit_note" type="text" class="form-control col-sm-9" placeholder="输入备注"/>
								</div>
							</div>
						</form>
					</div>
					<div class="modal-footer">
					    <button type="button" class="btn btn-default" onclick="edit_ok()">确定</button>
						<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
					</div>
				</div>
			</div>
		</div>
	</body>
</html>